package cn.sirun.com.fca.account.model.login;

import com.google.gson.annotations.SerializedName;

import cn.sirun.com.fca.account.model.base.SRPEncryptInfo;

/**
 * @author vinsonhuang
 * @date 2018/8/25
 */
public class ChallengeResponse extends SRPEncryptInfo {

    /**
     * 服务端的publickey
     */
    @SerializedName("B")
    private String publicKey;

    public ChallengeResponse() {
    }

    public ChallengeResponse(String salt, String group, String publicKey) {
        super(salt, group);
        this.publicKey = publicKey;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    @Override
    public String toString() {
        return "ChallengeResponse{" +
                "publicKey='" + publicKey + '\'' +
                ", salt='" + salt + '\'' +
                ", group='" + group + '\'' +
                '}';
    }
}
